package com.simple.gateway.center.domian.application.converter;

import com.simple.gateway.center.basedata.po.ApplicationInterface;
import com.simple.gateway.center.domian.application.bo.ApplicationInterfaceBO;
import com.simple.gateway.center.domian.application.dto.ApplicationInterfaceDTO;
import com.simple.gateway.center.domian.application.param.ApplicationInterfaceParam;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 项目: simple-gateway-core
 * <p>
 * 功能描述:
 *
 * @author: WuChengXing
 * @create: 2023-08-07 17:20
 **/
@Mapper
public interface ApplicationInterfaceConverter {

    ApplicationInterfaceConverter INSTANCE = Mappers.getMapper(ApplicationInterfaceConverter.class);

    /**
     * bo2dto
     *
     * @param bo
     * @return
     */
    ApplicationInterfaceDTO bo2Dto(ApplicationInterfaceBO bo);

    /**
     * bo2Do
     *
     * @param bo
     * @return
     */
    ApplicationInterface bo2Do(ApplicationInterfaceBO bo);

    /**
     * param2Bo
     *
     * @param param
     * @return
     */
    ApplicationInterfaceBO param2Bo(ApplicationInterfaceParam param);
}
